import request from '@/utils/request'
export const getDepartments = () => request.get('/company/department')
export const delDepts = id => request.delete(`/company/department/${id}`)
export const addDeptment = data => request.post('/company/department', data)
// 编辑
export const updateDepartments = data => request({
  url: `company/department/${data.id}`,
  method: 'put',
  data
})
